<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>List with pager example</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
.odd {
  background-color: silver;
}
.even {
  background-color: white;
}
</style>
</head>
<body>
<h1 align="center">List with pager example</h1>
<P align="center">A simple dataset in paginated via the pager tags. For extra pages we uses <b>elipses</b>(... are elipses)</P>

{{paginate iterator='$#php_modules' pager='pager'/}}
{{list using='$#php_modules' parity='$Parity' counter='$row_number'}}
<DIV ALIGN="RIGHT">
Page:
{{pager id="pager" items="5" pages_in_sides="2" pages_in_middle="3"}}
    {{pager:first}}<a href='{$href}'>First</a>{{/pager:first}} {{pager:prev}}<a href='{$href}'>Prev</a>{{/pager:prev}}
    {{pager:list}}
        {{pager:number}}<a href='{$href}'>{$number}</a>{{/pager:number}}
        {{pager:current}}<b>{$number}</b>{{/pager:current}}
        {{pager:elipses}}...{{/pager:elipses}}
        {{pager:separator}} {{/pager:separator}}
    {{/pager:list}}
    {{pager:next}}<a href='{$href}'>Next</a>{{/pager:next}} {{pager:last}}<a href='{$href}'>Last</a>{{/pager:last}}
{{/pager}}
</DIV>
  <TABLE width="100%" BORDER="1" ALIGN="CENTER">
    {{list:item}}
      <TR class="{$Parity}">
        <TD>{$row_number}</TD>
        <TD>{$item.name}</TD>
        <TD>{$item.description|default:"&nbsp;"}
        </TD>
        <TD>{$item.flag|default:"&nbsp;"}</TD>
      </TR>
    {{/list:item}}
  </TABLE>
{{/list}}
</body>
</html>
